Skip to content

Commit

Permalink
Boeffla sound: Simplified headphone and speaker gain sysfs These chan…
Browse files Browse the repository at this point in the history
…ges are currently required for the easy integration of this driver with SmartPack-Kernel Manager (and possibly official KA later) according to [this](SmartPack/SmartPack-Kernel-Manager@2473610) commit.

Signed-off-by: sunilpaulmathew <sunil.kde@gmail.com>
  • Loading branch information
sunilpaulmathew authored and Mibo5354 committed Feb 1, 2021
1 parent dd5c39a commit 2c9d913
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sound/soc/codecs/boeffla_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ static ssize_t boeffla_sound_store(struct device *dev, struct device_attribute *
static ssize_t headphone_volume_show(struct device *dev, struct device_attribute *attr, char *buf)
{
// print current values
return sprintf(buf, "Headphone volume:\nLeft: %d\nRight: %d\n", headphone_l, headphone_r);
return sprintf(buf, "%d %d\n", headphone_l, headphone_r);
}


Expand Down Expand Up @@ -1496,7 +1496,7 @@ static ssize_t headphone_volume_store(struct device *dev, struct device_attribut

// print debug info
if (debug(DEBUG_NORMAL))
printk("Boeffla-sound: headphone volume L=%d R=%d\n", headphone_l, headphone_r);
printk("%d %d\n", headphone_l, headphone_r);

return count;
}
Expand All @@ -1507,7 +1507,7 @@ static ssize_t headphone_volume_store(struct device *dev, struct device_attribut
static ssize_t speaker_volume_show(struct device *dev, struct device_attribute *attr, char *buf)
{
// print current values
return sprintf(buf, "Speaker volume:\nLeft: %d\nRight: %d\n", speaker_l, speaker_r);
return sprintf(buf, "%d %d\n", speaker_l, speaker_r);

}

Expand Down Expand Up @@ -1551,7 +1551,7 @@ static ssize_t speaker_volume_store(struct device *dev, struct device_attribute

// print debug info
if (debug(DEBUG_NORMAL))
printk("Boeffla-sound: speaker volume L=%d R=%d\n", speaker_l, speaker_r);
printk("%d %d\n", speaker_l, speaker_r);

return count;
}
Expand Down

0 comments on commit 2c9d913

Please sign in to comment.