diff mbox series

Revert "ALSA: usb-audio: Disable Lenovo P620 Rear line-in volume control"

Message ID 20200915103925.12777-1-kai.heng.feng@canonical.com (mailing list archive)
State New, archived
Headers show
Series Revert "ALSA: usb-audio: Disable Lenovo P620 Rear line-in volume control" | expand

Commit Message

Kai-Heng Feng Sept. 15, 2020, 10:39 a.m. UTC
This reverts commit 34dedd2a83b241ba6aeb290260313c65dc58660e.

According to Realtek, volume FU works for line-in.

I can confirm volume control works after device firmware is updated.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
---
 sound/usb/mixer_maps.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Takashi Iwai Sept. 21, 2020, 8:40 a.m. UTC | #1
On Tue, 15 Sep 2020 12:39:23 +0200,
Kai-Heng Feng wrote:
> 
> This reverts commit 34dedd2a83b241ba6aeb290260313c65dc58660e.
> 
> According to Realtek, volume FU works for line-in.
> 
> I can confirm volume control works after device firmware is updated.

A slight concern is what happens if you apply this change to the
device before the firmware update.

Also, after this revert, does the mixer control appear properly?


thanks,

Takashi

> 
> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
> ---
>  sound/usb/mixer_maps.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c
> index 5b43e9e40e49..c369c81e74c4 100644
> --- a/sound/usb/mixer_maps.c
> +++ b/sound/usb/mixer_maps.c
> @@ -371,7 +371,6 @@ static const struct usbmix_name_map asus_rog_map[] = {
>  };
>  
>  static const struct usbmix_name_map lenovo_p620_rear_map[] = {
> -	{ 19, NULL, 2 }, /* FU, Volume */
>  	{ 19, NULL, 12 }, /* FU, Input Gain Pad */
>  	{}
>  };
> -- 
> 2.17.1
>
Kai-Heng Feng Sept. 22, 2020, 3:13 p.m. UTC | #2
> On Sep 21, 2020, at 16:40, Takashi Iwai <tiwai@suse.de> wrote:
> 
> On Tue, 15 Sep 2020 12:39:23 +0200,
> Kai-Heng Feng wrote:
>> 
>> This reverts commit 34dedd2a83b241ba6aeb290260313c65dc58660e.
>> 
>> According to Realtek, volume FU works for line-in.
>> 
>> I can confirm volume control works after device firmware is updated.
> 
> A slight concern is what happens if you apply this change to the
> device before the firmware update.

The desktop that equips with the USB audio device hasn't released to the market yet, so I am not really worried about this.

> 
> Also, after this revert, does the mixer control appear properly?

Yes it does.

Kai-Heng

> 
> 
> thanks,
> 
> Takashi
> 
>> 
>> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
>> ---
>> sound/usb/mixer_maps.c | 1 -
>> 1 file changed, 1 deletion(-)
>> 
>> diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c
>> index 5b43e9e40e49..c369c81e74c4 100644
>> --- a/sound/usb/mixer_maps.c
>> +++ b/sound/usb/mixer_maps.c
>> @@ -371,7 +371,6 @@ static const struct usbmix_name_map asus_rog_map[] = {
>> };
>> 
>> static const struct usbmix_name_map lenovo_p620_rear_map[] = {
>> -	{ 19, NULL, 2 }, /* FU, Volume */
>> 	{ 19, NULL, 12 }, /* FU, Input Gain Pad */
>> 	{}
>> };
>> -- 
>> 2.17.1
>>
Takashi Iwai Sept. 22, 2020, 3:16 p.m. UTC | #3
On Tue, 22 Sep 2020 17:13:05 +0200,
Kai-Heng Feng wrote:
> 
> 
> > On Sep 21, 2020, at 16:40, Takashi Iwai <tiwai@suse.de> wrote:
> > 
> > On Tue, 15 Sep 2020 12:39:23 +0200,
> > Kai-Heng Feng wrote:
> >> 
> >> This reverts commit 34dedd2a83b241ba6aeb290260313c65dc58660e.
> >> 
> >> According to Realtek, volume FU works for line-in.
> >> 
> >> I can confirm volume control works after device firmware is updated.
> > 
> > A slight concern is what happens if you apply this change to the
> > device before the firmware update.
> 
> The desktop that equips with the USB audio device hasn't released to the market yet, so I am not really worried about this.
> 
> > 
> > Also, after this revert, does the mixer control appear properly?
> 
> Yes it does.

Alright, then let's take the patch.
Thanks for clarification.


Takashi
diff mbox series

Patch

diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c
index 5b43e9e40e49..c369c81e74c4 100644
--- a/sound/usb/mixer_maps.c
+++ b/sound/usb/mixer_maps.c
@@ -371,7 +371,6 @@  static const struct usbmix_name_map asus_rog_map[] = {
 };
 
 static const struct usbmix_name_map lenovo_p620_rear_map[] = {
-	{ 19, NULL, 2 }, /* FU, Volume */
 	{ 19, NULL, 12 }, /* FU, Input Gain Pad */
 	{}
 };